export default [
    {
        name:'home',
        path:'/',
        redirect:'/channel',
        component: () => import('@/pages/front/home/home.vue'),
        children:[
            {
                name:'all',
                path:'/all',
                component: () => import('@/pages/front/home/all.vue'),
            },
            {
                name:'rank',
                path:'/rank',
                component: () => import('@/pages/front/home/rank.vue'),
            },
            {
                name:'channel',
                path:'/channel',
                component:()=> import('@/pages/front/home/index_channel.vue')
            },
            {
                name:'user',
                path:'/user',
                component:()=> import('@/pages/front/home/user/user.vue'),
                redirect:"/user/info",
                children:[
                    {
                        name:"info",
                        path:'info',
                        component:()=> import('@/pages/front/home/user/info.vue')
                    },
                    {
                        name:"updatepwd",
                        path:'updatepwd',
                        component:()=> import('@/pages/front/home/user/updatepwd.vue')
                    },
                    {
                        name:"bookshelf",
                        path:'bookshelf',
                        component:()=> import('@/pages/front/home/user/bookshelf.vue')
                    },
                ]
            },
            {
                name:"search",
                path:'/search',
                component:()=> import('@/pages/front/home/search.vue')
            },
        ]
    }
]